package com.iweb.dishes.service;

import com.iweb.dishes.dao.DishesDao;
import com.iweb.dishes.dao.DishesDaoImpl;
import com.iweb.dishes.model.Dishes;
import com.iweb.util.PageModel;

import java.util.List;

public class DishesServiceImpl implements DishesService{
DishesDao dishesDao=new DishesDaoImpl();
    @Override
    public List<Dishes> selectByPage(PageModel pageModel) {
        return dishesDao.selectByPage(pageModel);
    }

    @Override
    public int addOne(Dishes dishes) {
        return dishesDao.addOne(dishes);
    }

    @Override
    public int updateOne(Dishes dishes) {
        return dishesDao.updateOne(dishes);
    }

    @Override
    public int deleteById(int cid) {
        return dishesDao.deleteById(cid);
    }

    @Override
    public Dishes queryById(String cid) {
        return dishesDao.queryById(cid);
    }
}
